package com.py.pythink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_osslog")
public class OssLog {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String bucket;//oos的bucket的名字
    private String objname;//上传文件的重命名
    private Integer type;// 长传的文件类型
    private String preurl;//上传文件的查看地址
    private Date etime;//查看地址的失效日期
    private Date ctime;//查看文件地址的开始日期

    public OssLog(Integer type, String bucket, String objname, String preurl, Date ctime, Date etime) {
        this.type = type;
        this.bucket = bucket;
        this.objname = objname;
        this.preurl = preurl;
        this.ctime = ctime;
        this.etime = etime;
    }
}
